﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="GadgetDef.aspx.cs" Inherits="EXAM.Admin.Page_Admin.GadgetDef"  %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">


.RadUpload .ruInputs
{
	list-style:none;
	margin:0;
	padding:0;
}

.RadUpload .ruInputs
{
	zoom:1;/*IE fix - removing items on the client*/
}

.RadUpload .ruInputs
{
	list-style:none;
	margin:0;
	padding:0;
}

.RadUpload .ruInputs
{
	zoom:1;/*IE fix - removing items on the client*/
}

        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td align="center" class="formTitle">
                Gadget managerment</td>
        </tr>
        <tr>
            <td>
                &nbsp;
                
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
                
                <br />
                <br />
                <table>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtName" runat="server" Width="300px">
                            </telerik:RadTextBox>
                            <telerik:RadTextBox ID="txtID" Runat="server" Visible="False" Width="50px">
                            </telerik:RadTextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Type</td>
                        <td>
                            <telerik:RadComboBox ID="cboType" Runat="server">
                                <Items>
                                    <telerik:RadComboBoxItem runat="server" Text="Testing" Value="Testing" />
                                    <telerik:RadComboBoxItem runat="server" Text="Test Preview" 
                                        Value="Test Preview" />
                                </Items>
                            </telerik:RadComboBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Width</td>
                        <td>
                            <telerik:RadNumericTextBox ID="txtWidth" Runat="server" Value="300">
                                <NumberFormat DecimalDigits="0" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Height</td>
                        <td>
                            <telerik:RadNumericTextBox ID="txtHeigth" Runat="server" Value="300">
                                <NumberFormat DecimalDigits="0" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            Image</td>
                        <td>
                            <telerik:RadUpload ID="upPicture" runat="server" Width="300px" 
                                ControlObjectsVisibility="None" TargetFolder="~/Upload">
                            </telerik:RadUpload>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <div>
                <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass="" 
                        SplitButtonPosition="Right" onclick="btnNew_Click">
                </telerik:RadButton>
                <telerik:RadButton ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click">
                </telerik:RadButton>
                <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" 
                        onclick="btnDelete_Click">
                </telerik:RadButton></div>
                <br />
                <br />
                <div style="width:100%">
                <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Skin="Office2007" AllowFilteringByColumn="True" 
                    AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                    onitemcommand="dgvList_ItemCommand" ShowGroupPanel="True" 
                    onneeddatasource="dgvList_NeedDataSource">                    
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007"></HeaderContextMenu>

                    <MasterTableView PageSize="20" datakeynames="ID">
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridButtonColumn CommandName="Selected" 
                                FilterControlAltText="Filter column column" Text="Edit" UniqueName="column">
                            </telerik:GridButtonColumn>
                            <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" 
                                UniqueName="column8">
                            </telerik:GridClientSelectColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="Name"
                                UniqueName="column1" DataField="Name">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="Parent Name"
                                UniqueName="column2" DataField="Parent">
                            </telerik:GridBoundColumn>
                            <telerik:GridDateTimeColumn FilterControlAltText="Filter column3 column" HeaderText="Link"
                                UniqueName="column3" DataField="Link">
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings AllowDragToGroup="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
                </div>
                <br />
            </td>
            <td> 
                <asp:Image ID="imgPic" runat="server" /></td>
        </tr>
    </table>
   
</asp:Content>
